package pkg.filter;

import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.Query;
import java.util.ArrayList;
import java.util.List;
import pkg.dao.Filter;
import pkg.entity.Grade;

public class GradeFilter extends Filter {

    @Override
    public List getElements(Objectify ofy) {
        Query<Grade> query = ofy.query(Grade.class);

        List<Grade> entities = new ArrayList<Grade>();
        for (Grade e : query) {
            entities.add(e);
        }
        return entities;
    }

    @Override
    public int getCount(Objectify ofy) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void setSimple(String filterText) {
        throw new UnsupportedOperationException("Not yet implemented");
    }

}
